home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 018a / wptool51.zip / WPTOOL51.DOC < prev   
Text File  |  1991-11-05  |  92KB  |  2,009 lines

  1. David Seidman
  2. Software by Seidman
  3. 2737 Devonshire Place, N.W.
  4. Washington, D. C. 20008
  5. November 2, 1991
  6.  
  7. Copyright (c) 1988 - 1991 by David Seidman
  8.  
  9.  
  10.                SOFTWARE BY SEIDMAN'S WPTOOLS VERSION 5.1
  11.  
  12.                                              
  13.  
  14.                               INTRODUCTION
  15.  
  16. WPTOOLS Version 5.1 is a collection of utility programs for use with 
  17. WordPerfect Versions 5.0 and 5.1 (WP50, WP51, or, collectively, WP5).  
  18. Most of the programs are equally useful with LetterPerfect 1.0.  Some 
  19. also work with PlanPerfect 5.x (PP5) files and files from other recent 
  20. WordPerfect Corp. products.  Because WordPerfect for Windows document 
  21. files are compatible with WP51 document files, most WPTOOLS programs 
  22. should work equally well with WordPerfect for Windows.  The shareware 
  23. distribution consists of a what's new file, this documentation in ASCII 
  24. format, and fourteen programs:  DISKFONT, FIXPRE, FONTFILE, FONTLIST, 
  25. IS5XDOC, LISTMACS, MAKETABS, MERGESUM, PRINTIT, PRSFONTS, STYLIST, 
  26. WHATPTRS, WP5LOOK, and WPSNOOP.  Users who pay the license fee also 
  27. receive Supplemental Tools (six additional utility programs: COMMENTS, 
  28. ENDFOOT, MASTER, STYLEUSE, TARGETS, and WPGSIZE), and this 
  29. documentation in WP5 format.  WPDOCS.NB, a WordPerfect Library/Office 
  30. Notebook file written by Barry Zimmerman, and WPDOCS2.NB are 
  31. distributed with WPTOOLS for use with MERGESUM. 
  32.  
  33.  
  34.                              PROGRAMS
  35.  
  36. Briefly, this is what the WPTOOLS and Supplemental Tools programs 
  37. do: 
  38.  
  39.  
  40. COMMENTS Reads one or more WP5 document files, extracts the comments, 
  41.          and writes them to a WPerf file or to standard output. 
  42.  
  43. DISKFONT Searches a directory for specified soft font files and, 
  44.          optionally, lists descriptive information about the fonts it 
  45.          finds. 
  46.  
  47. ENDFOOT  Converts all footnotes (endnotes) to endnotes (footnotes), 
  48.          changing automatic references appropriately.
  49.          
  50. FIXPRE   Removes deleted (and optionally other) data packets from the 
  51.          prefix of WP5 document files and removes deleted data packets 
  52.          from WP5 (and other WPCorp) setup files (e.g., WP{WP}.SET).  
  53.          For document files, this will often facilitate changing the 
  54.          printer driver used with the file and shrink the file.  Setup 
  55.          files grow as you modify your setup; FIXPRE shrinks them 
  56.          again.  And FIXPRE sometimes helps when WP5 just seems to be 
  57.          acting strangely.  Optionally deletes styles, initial codes, 
  58.          document summaries, and graphics. 
  59.  
  60. FONTFILE Lists the file names of the soft font files specified in a PRS 
  61.          file. 
  62.  
  63. FONTLIST Lists the names of the fonts used in a WP5 document and the 
  64.          PRS file the document calls for. 
  65.  
  66. IS5XDOC  Identifies WP5 document files.  Useful in batch files. 
  67.  
  68. LISTMACS Lists the names and descriptions of macros in WPM and WPK 
  69.          files (and the keys for WPK macros), optionally sorted.  Also 
  70.          works with PP5 and DR macro and keyboard files.
  71.          
  72. MAKETABS Converts an ASCII text file to a WP50 document, replacing 
  73.          spaces by tabs.  Used with columnar material. 
  74.  
  75. MASTER   Reads a WP5 master document and lists the unexpanded 
  76.          subdocuments it calls for. 
  77.  
  78. MERGESUM Creates (or adds to) a WP50 secondary merge file, each record 
  79.          containing the information from a WP5 document summary (or, 
  80.          optionally, the first 400 or so characters of a document if no 
  81.          summary was created), along with information from the DOS file 
  82.          directory.  In effect, creates a database of document 
  83.          summaries that can be processed using the WP5 Merge and Sort 
  84.          functions, or WordPerfect's Notebook program. 
  85.  
  86. PRINTIT  Paginates and formats an ASCII text file for printing.
  87.  
  88. PRSFONTS Lists and optionally numbers the names of the fonts available 
  89.          in a WP5 PRS file. 
  90.  
  91. STYLIST  Lists names and descriptions of styles, optionally sorted.
  92.  
  93. STYLEUSE Lists the styles used in the text of a document.  Lists the 
  94.          styles found in the prefix but not used in the document.  
  95.          Optionally deletes unused (or all) styles from the prefix.  
  96.          Optionally deletes style on and off codes from the text of a 
  97.          document, leaving the codes added by the style. 
  98.  
  99. TARGETS  Lists the automatic reference targets and references in a WP5 
  100.          document file, indicating unreferenced targets and references 
  101.          to nonexistent targets. 
  102.  
  103. WHATPTRS Lists the printers described in ALL files, optionally sorted 
  104.          by printer name. 
  105.  
  106. WP5LOOK  Displays one or more WP5 document files specified on the 
  107.          command line, piped to the program, or entered in response to 
  108.          prompts. Particularly because files can be specified with 
  109.          wildcards, WP5LOOK may be more convenient than WP5 itself for 
  110.          browsing through WP5 documents.   Also displays non-WP5 files. 
  111.  
  112. WPGSIZE  Extracts and lists the dimensions of the image coordinate 
  113.          space for WPG files.  Useful in getting the aspect ratio 
  114.          right. 
  115.  
  116. WPSNOOP  Determines, in greater or lesser detail, the file type of 
  117.          many, but not all, files associated with recent WordPerfect 
  118.          Corporation products. For WP5 document files, lists the 
  119.          document summary and the PRS file.  For macro files, lists the 
  120.          description.  Optionally reveals the structure of WP5 document 
  121.          file prefixes and of set file prefixes. 
  122.  
  123. More detail is given below.  In most cases, running the program from 
  124. the DOS command line without any parameters specified will produce a 
  125. brief explanation of program usage. 
  126.  
  127. WPCorp has no connection with these programs, except that it provided 
  128. the technical information necessary to write some of them.  WPCorp, 
  129. WordPerfect, PlanPerfect, DrawPerfect, DataPerfect, and LetterPerfect 
  130. are registered trademarks of WordPerfect Corporation.  WordPerfect 
  131. Office and WordPerfect Library are trademarks of WordPerfect 
  132. Corporation.  Windows is a trademark of Microsoft Corporation. 
  133.  
  134.  
  135.  
  136.  
  137.                      Notes on Other WPCorp Programs
  138.  
  139. LetterPerfect's files are on the whole indistinguishable from 
  140. WordPerfect files for purposes of WPTOOLS.  As a result, all the 
  141. WPTOOLS programs should work with LetterPerfect files as well as 
  142. WordPerfect files.  PP5 uses the same ALL and PRS files as WP5.  PP5's 
  143. setup, macro, and keyboard files share a file structure with WP5.  The 
  144. WPTOOLS programs that work with such files work with both WP5 and PP5 
  145. files.  WPCorp uses similar macro, keyboard, and setup file structures 
  146. for other programs, so WPTOOLS will work with them too. 
  147.  
  148. This documentation does not always indicate whether a particular 
  149. program works with files from WPCorp programs other than WP5, and it 
  150. never indicates whether a particular program works with LetterPerfect 
  151. files, because there is really no difference between LetterPerfect and 
  152. WP5 files. When in doubt, give it a try.  But WPTOOLS does not work 
  153. with early WPCorp program files, such as WP4.x, DataPerfect in all 
  154. versions released so far, or Library. 
  155.  
  156.  
  157.                      Notes on Command Line Switches
  158.  
  159. Many of these programs require, or at least allow, you to select among 
  160. various options.  Your choices are usually indicated by means of 
  161. "switches" on the DOS command line.  These switches for any particular 
  162. program are described in detail in the discussion of that program 
  163. below. Generally, the discussion below indicates that each switch is 
  164. preceded by a hyphen (for example, -M is an optional command line 
  165. switch for WP5LOOK).  In each case where the documentation indicates a 
  166. switch should be preceded by a minus sign, it is also acceptable to use 
  167. a slash ("/"). Thus, -M and /M on the command line have the same 
  168. meaning. 
  169.  
  170. Usually, each item you enter on the DOS command line is separated from 
  171. the next by a blank space.  Thus, if you use the -C and -R switches 
  172. with MERGESUM, your command line might look like this: 
  173.  
  174.                  MERGESUM *.* -omydocs -R -C
  175.  
  176. In most cases, where particular options must consist entirely of single 
  177. letters, you can combine the options: 
  178.  
  179.                  MERGESUM *.* -omydocs -RC
  180.  
  181. Note that case does not matter for switches.  The previous example 
  182. could just as well be written this way: 
  183.  
  184.                  MERGESUM *.* -Omydocs -rc
  185.  
  186.  
  187.                        Notes on Input and Output
  188.  
  189. You normally supply these programs with one or more input file names 
  190. ("Infile") and sometimes an output file name ("Ofile") on the DOS 
  191. command line.  The file name may always include drive and path 
  192. specifications.  The individual program descriptions mention where 
  193. wildcards (* and ?) can be used.  Several programs supply default 
  194. extensions if you give a filename without an extension.  To avoid the 
  195. default extension (for files which really have no extension), end the 
  196. filename with a period. 
  197.  
  198. Many of these programs are intended to read WP5 files, and except in 
  199. the case of IS5XDOC, it does not make any difference which version of 
  200. WP5 produced the files.  Note that WPTOOLS cannot process password 
  201. protected files; usually they are just ignored. 
  202.  
  203. Many of these programs by default write their output to "standard 
  204. output," but output will go to a WP50 file instead if you specify an 
  205. output file (usually with a -o switch before the name of the file).  A 
  206. WP50 file can, of course, be read in WP51. 
  207.  
  208. By default, standard output means the screen -- the output goes to the 
  209. screen in a continuous flow.  This may not be what you want, either 
  210. because more than one screen's worth of output will be generated or 
  211. because you want to keep or otherwise use the output.  Instead of 
  212. letting standard output go directly to the screen, you can pipe it to 
  213. another program, or redirect it to either the printer or a file.  For 
  214. example, screen display is more useful if you pipe output to the DOS 
  215. filter MORE: 
  216.  
  217.  
  218.                               WPSNOOP *.* |MORE
  219.  
  220.  
  221. or, better, to Vernon Buerg's LIST:
  222.  
  223.  
  224.                               WPSNOOP *.* |LIST /s
  225.  
  226.  
  227. You might also pipe to PRINTIT and redirect the output from PRINTIT to 
  228. the printer directly or to a file for later printing: 
  229.  
  230.  
  231.                               WPSNOOP *.* |PRINTIT >prn
  232.  
  233. or
  234.  
  235.                               WPSNOOP *.*|PRINTIT >outfile
  236.  
  237.  
  238. Or you can have the program output go directly to an ASCII text file:
  239.  
  240.                               WPSNOOP *.*>outfile
  241.  
  242.  
  243.  
  244.  
  245.                       Notes on WP50 and WP51 Files
  246.  
  247. Several WPTOOLS programs identify, in their output, input document 
  248. files as either WP50 or WP51, based on version information in the file 
  249. prefix.  This information may be less useful than you think.  In early 
  250. releases of WP51, the version information usually identifies the 
  251. version originally used to create the file.  Thus if you create a file 
  252. in WP50, save it, read it in to WP51, add codes specific to WP51, and 
  253. save the file again, it will still be identified as a WP50 file, even 
  254. though it contains codes unknown to WP50.  We believe this has been 
  255. changed in later releases of 5.1. 
  256.  
  257.                        *        *       *       *
  258.  
  259.  
  260.                                 PROGRAMS
  261.  
  262. I.  COMMENTS
  263.  
  264. COMMENTS extracts the comments (if any) in one or more WP5 document 
  265. files and writes them to a WP50 file or to standard output.  This 
  266. allows you to read all the comments in a document without retrieving 
  267. the document into WP5 and searching for the comments individually.  If 
  268. you send the COMMENTS output to standard output, you can read it on the 
  269. screen, send it to the printer, or capture it in an ASCII text file. 
  270.  
  271.  
  272. Usage:  COMMENTS Infile [Outfile]
  273.  
  274.                Infile is a WP5 document file specification.  It may 
  275.                include DOS wildcards. 
  276.  
  277.                Outfile is a WP50 file.  If it is omitted from the 
  278.                command line, output is written to standard output. 
  279.  
  280.  
  281.          Examples:
  282.  
  283.          COMMENTS Myfile ComFile
  284.  
  285.          The comments in Myfile are written to ComFile in WP50 format. 
  286.  
  287.          COMMENTS *.* |PRINTIT >prn
  288.  
  289.          Comments in all files in the default directory are printed.
  290.  
  291.          COMMENTS Myfile >Comments.out
  292.  
  293.          Comments in Myfile are written to the ASCII text file 
  294.          Comments.out in the default directory. 
  295.  
  296.  
  297.  
  298. II.  DISKFONT
  299.  
  300. DISKFONT has two uses:
  301.  
  302.          1.   To provide information about soft fonts by reading the 
  303.               soft font disk files. 
  304.  
  305.          2.   To examine a list of fonts to determine whether their 
  306.               files are on the disk. 
  307.  
  308. DISKFONT reads a list of soft font file names and searches for the 
  309. files in a specified disk directory.  By default, it lists information 
  310. about the fonts in the soft font files it finds (if the soft font is 
  311. compatible with the HP LaserJet Series II or the HP DeskJet and 
  312. includes the standard information internally).  Optionally, it merely 
  313. reports the names of the font files it fails to find. 
  314.  
  315. FONTFILE (another WPTOOLS program) creates a list of soft font file 
  316. names referenced in a PRS file.  This list may be used as input to 
  317. DISKFONT, which can process the list to find whether the files are 
  318. available or to provide more information about them.  Note that the ALL 
  319. file from which a PRS file was made may reference more soft fonts than 
  320. the PRS file references.  Soft fonts are referenced in a PRS file only 
  321. if you chose to include them in the PRS file, using * or + (or both). 
  322. Therefore, the list generated by FONTFILE may be smaller than the list 
  323. WPerf is capable of displaying. 
  324.  
  325.  
  326. Usage:DISKFONT [-Option] [-Option]
  327.  
  328.                Input is a list of filenames from standard input.  The 
  329.                filenames may include standard DOS wildcards.  FONTFILE 
  330.                output is acceptable input to DISKFONT, and may be piped 
  331.                to it.  If the input is a file containing a list of soft 
  332.                font file names, use input redirection (<infile).  Input 
  333.                may also come from the keyboard; in that case, use ^Z 
  334.                followed by Enter to terminate keyboard input.  Note 
  335.                that it is an error to put an input file on the command 
  336.                line without < before it. 
  337.  
  338.                Output goes to standard output by default and may be 
  339.                piped or redirected. Output may optionally be in WP50 
  340.                format. 
  341.  
  342.  
  343.                Options:
  344.  
  345.                -D     directory (Directory where fonts are) If no 
  346.                       directory is supplied, default directory is 
  347.                       assumed.  If the input filenames include 
  348.                       directory information, that overrides the command 
  349.                       line. 
  350.  
  351.                -O     OFile For WP50 output.
  352.                       Formatting of the WP50 file assumes, but does not 
  353.                       set, left and right margins of 1" and a 10-pitch 
  354.                       monospaced font; the tabs set by DISKFONT may 
  355.                       seem strange if those are not your defaults. 
  356.  
  357.                -F     Only find fonts--no info given
  358.  
  359.                -?     Help message
  360.  
  361.  
  362.  
  363.                Examples:
  364.  
  365.                DISKFONT
  366.  
  367.                Keyboard input, output to standard output (screen).
  368.  
  369.                DISKFONT <myfonts.txt
  370.  
  371.                Input, myfonts.txt, is an ASCII text file containing a 
  372.                list of font file names.  Output to screen. 
  373.  
  374.  
  375.                FONTFILE My.PRS|DISKFONT -Dc:\wp\fonts|PRINTIT >prn
  376.  
  377.                Input is list of font files referenced by My.PRS.  The 
  378.                list is created by FONTFILE and piped to DISKFONT.  The 
  379.                font files are in subdirectory \wp\fonts on drive C:. 
  380.                DISKFONT output is piped to PRINTIT.  PRINTIT output is 
  381.                redirected to the printer. 
  382.  
  383.  
  384.  
  385. Here is an example of DISKFONT output:
  386.  
  387.  
  388.           Report for LJ font file AC0060RH.HPF:
  389.           FontName      Swiss
  390.           Typeface      4 (Helvetica)
  391.           Orientation   Portrait
  392.           Height        6.0 points
  393.           Style         Upright
  394.           Font Weight   2
  395.           Font type     8-bit
  396.           Symbol Set    HP Roman-8
  397.           Spacing       Proportional.  Space width is 1.68 points
  398.  
  399.          The first line gives the file name and identifies the file as 
  400.          either a LaserJet (LJ) or a DeskJet (DJ) font file. 
  401.  
  402.          FontName is the name stored in the font file as the name of 
  403.          the font, although some fonts are usually referred to by a 
  404.          different name. 
  405.  
  406.          Typeface is a number (0-255).  For some typefaces, DISKFONT 
  407.          can supply the typeface name. 
  408.  
  409.          Orientation is Portrait or Landscape.
  410.  
  411.          Height is a standard measure of the height of the font.  It is 
  412.          not necessarily the height of any character in the font. 
  413.  
  414.          Style is either Upright or what HP calls "italic."  HP notes 
  415.          that other values may be assigned -- DISKFONT will not 
  416.          recognize them. 
  417.  
  418.          Weight is the stroke weight of the font, a value from -7 to 
  419.          +7.  According to HP, 0 means "medium," 3 means "bold," and -3 
  420.          means "light." DISKFONT translates the numbers to words 
  421.          according to HP's scheme.  Not everyone uses that scheme. 
  422.          BITSTREAM, for example, apparently treats 2 as meaning bold. 
  423.  
  424.          Font Type comes in three varieties.  "7-bit" indicates that 
  425.          ASCII codes 32-127 are printable.  "8-bit" indicates that 
  426.          ASCII codes 32-127 and 160-255 are printable.  "PC-8" 
  427.          indicates that all ASCII codes except 0,7-15, and 27 are 
  428.          printable. 
  429.  
  430.          Symbol Set indicates which characters will actually print.  
  431.          This is stored by number in the file.  It is possible DISKFONT 
  432.          will not translate some numbers to words. 
  433.  
  434.          Spacing is proportional or fixed.  For either, an appropriate 
  435.          measure of the spacing is listed. 
  436.  
  437.  
  438. DISKFONT was inspired by Gary Elfring's program FONTINFO.
  439.  
  440.  
  441. III.  ENDFOOT
  442.  
  443. ENDFOOT converts all the footnotes in a document file to endnotes, or 
  444. all the endnotes to footnotes.  Of course, you can do this with a macro 
  445. (distributed with WP51).  But macros do not adjust your automatic 
  446. references appropriately, so that references to the former footnotes 
  447. become references to endnotes (or references to endnotes become 
  448. references to footnotes).  ENDFOOT does.  Also, ENDFOOT is likely to be 
  449. faster than a macro. 
  450.  
  451.  
  452. Usage:  ENDFOOT Infile Outfile [-Option]
  453.  
  454.          Infile is the WP5 file to be converted.
  455.  
  456.          Outfile is the converted WP5 file.
  457.  
  458.          Options (use at most one):
  459.  
  460.          -F Convert footnotes to endnotes (the default, so you do not 
  461.             have to indicate the option) 
  462.  
  463.          -E Convert endnotes to footnotes
  464.  
  465.  
  466.  
  467. IV.  FIXPRE
  468.  
  469. A.  WP5 Document Files
  470.  
  471. WP5 document files have two sections:  the prefix (created by WP5), 
  472. which contains document default settings, fonts, styles, and similar 
  473. information; and the document itself (text and codes entered by the 
  474. user).  FIXPRE strips certain information out of the prefix; much of it 
  475. concerns printers and fonts, while most of the rest is obsolete.  When 
  476. you read the stripped file created by FIXPRE back into WP5, WP5 
  477. restores the printer and font information. 
  478.  
  479. This sounds pretty pointless.  Why do it?  There are several reasons: 
  480.  
  481. (1)  Some users have had difficulty printing files after changing 
  482. printer drivers or when the files were created on another system.  Use 
  483. FIXPRE to clean the printer-related information out of the prefix; then 
  484. read the file into WP5 and install with new drivers.  The difficulties 
  485. may disappear. (The UPDATE function introduced in the WP50 July 1988 
  486. maintenance release solves many printer driver problems of this kind, 
  487. but apparently not all.) 
  488.  
  489. (2)  As you edit a file, WP5 adds new information to the prefix and 
  490. marks old information as no longer valid.  In early releases of Version 
  491. 5.0, this led to some problems.  Although these problems may have 
  492. disappeared with the November 15, 1989 release, some aspects may 
  493. remain. This description is based on earlier releases of WP50.  The 
  494. FASTSAVE option in the configuration setup (which is not the default 
  495. setting with which the program is shipped) speeds disk saves of 
  496. documents because it does not delete from the prefix the old, invalid 
  497. information.  Therefore, files edited in FASTSAVE mode tend to be 
  498. larger than other WP5 files, sometimes startlingly so.  If you save a 
  499. file without FASTSAVE, most (but not all) of the outdated information 
  500. is physically deleted from the prefix, but not if you FASTSAVE.  FIXPRE 
  501. physically deletes the information marked as deleted (and, depending on 
  502. how you configure FIXPRE, other information as well--the valid printer 
  503. and font information, as noted above).  So you could either not use 
  504. FASTSAVE regularly, or you could use FASTSAVE -- and FIXPRE from time 
  505. to time. 
  506.  
  507. (3)  Another reason for using FIXPRE is harder to describe.  Sometimes 
  508. the formatting in a WP5 file goes haywire.  The problem may -- or may 
  509. not -- go away if you FIXPRE the document.  For example, this document 
  510. was originally written in WP5, using Courier 10.  I changed to Courier 
  511. 12, didn't like the results, and went back to Courier 10.  After those 
  512. changes, centered lines were no longer centered properly, and many of 
  513. the tabbed and indented lines were also off.  After trying a few ways 
  514. of fixing the problem, I FIXPREd the document and read it back into 
  515. WP5.  Problem gone.  I can't explain why the document went bad, or why 
  516. FIXPRE fixed it.  But if you run into strange formatting problems, give 
  517. FIXPRE a try.  Other problems to which this solution may apply include 
  518. misplaced graphic lines and improper font printing. 
  519.  
  520. (4)  FIXPRE optionally strips styles, initial codes, document 
  521. summaries, and graphics from the prefix.  Stripping the initial codes 
  522. with FIXPRE may sometimes be the easiest way to get rid of them.  
  523. Stripping styles helps to save disk space by shrinking the file.  
  524. Stripping styles from the prefix does not affect any use you have 
  525. already made of the styles in the document, but it prevents you from 
  526. using the style again in the document (until you retrieve it again or 
  527. otherwise recreate it -- WP51 automatically recreates styles that have 
  528. been used in the document).  So it makes sense to strip styles mainly 
  529. when you have finished working on a document and simply want to store 
  530. it.  (Note that STYLEUSE provides a more flexible way of dealing with 
  531. styles.) Stripping the document summary may be useful if the document 
  532. has changed enough that the summary no longer reflects the content of 
  533. the document.  Stripping graphics may not be useful; the option exists 
  534. because one user suspected that stripping graphics would fix a 
  535. particular problem he had run into. 
  536.  
  537. B.  WP5 Setup Files
  538.  
  539. The WP5 setup file, WP{WP}.SET, also contains a number of data packets.  
  540. As you change your setup (without making a new setup file), new data 
  541. packets are added and old ones marked as deleted.  WP50 seems never 
  542. actually to remove these deleted data packets from the setup file. 
  543. FIXPRE will remove them.  I have seen setup files shrink to 1/10th 
  544. their size.  When certain problems arise from bloated WP50 set files,  
  545. WordPerfect Corporation advises erasing the set file and starting 
  546. again.  FIXPRE is easier.  WP51 does remove at least some deleted data 
  547. packets from the setup file sometimes, so FIXPRE will less often be 
  548. useful with WP51 set files. 
  549.  
  550. C.  PlanPerfect And Other Programs
  551.  
  552. FIXPRE works with PP5 set files and should work with any other set 
  553. files WPCorp comes out with. 
  554.  
  555.  
  556. D.  Using FIXPRE
  557.  
  558. Usage:  FIXPRE Infile [Outfile] [-Option] . . [-Option]
  559.  
  560.                  Infile is the WP5 document or setup file to be fixed.  
  561.                  May include wildcards. 
  562.                  
  563.                  Outfile is not required, and if it is provided it will 
  564.                  not be used if Infile contains wildcards.  If Outfile 
  565.                  is used, Infile will be unchanged, and the fixed file 
  566.                  written to Outfile.  If Outfile is not used, Infile 
  567.                  will be renamed (as a backup), and the fixed file will 
  568.                  be written under the original Infile name. The backup 
  569.                  file name is based on the Infile name.  It is the main 
  570.                  part of the Infile name, with a new extension.  The 
  571.                  backup file will NOT overwrite any existing file.  
  572.                  Suppose the Infile you supply is LETTER.DOC.  The 
  573.                  program tries to use the name LETTER.F01 for the 
  574.                  backup.  If a file with that name exists, the program 
  575.                  tries LETTER.F02, and so on through F99 (where the 
  576.                  program gives up and asks you to provide an output 
  577.                  file name).  When the program is finished, LETTER.DOC 
  578.                  will be the fixed file. 
  579.                  
  580.                       
  581.                  Options:  (Each may be listed with - and separated 
  582.                  from the next by a blank, or you may combine options 
  583.                  after a single -.  Thus -K -E and -KE are both valid.) 
  584.  
  585.                  -K     Kill (do not preserve) the backup file.  The 
  586.                         .Fxx file will be deleted when the program 
  587.                         finishes. 
  588.  
  589.                  -E     Process input wildcard specification through 
  590.                         the directory tree.  For example, if Infile is 
  591.                         c:\wp51\*.*, FIXPRE will process all files in 
  592.                         c:\wp51 and all files in the tree of 
  593.                         subdirectories branching from subdirectory 
  594.                         wp51.  Thus it would process all files in 
  595.                         subdirectories c:\wp51\memos, c:\wp51\letters, 
  596.                         c:\wp51\letters\jan, etc. 
  597.  
  598.                  -T     DOS directory entry for the output file has the 
  599.                         date and time of the input file.  Otherwise, 
  600.                         current date and time are used. 
  601.  
  602.                  -A     Process wildcard files only if archive bit is 
  603.                         set.  Useful if you use FIXPRE to save space 
  604.                         before backing up your files.  Avoids re-
  605.                         FIXPREing files already backed up. 
  606.  
  607.                  The remaining options are ignored if the input file is a setup file.
  608.  
  609.                  -D     With this option, FIXPRE strips only deleted data 
  610.                         packets from the prefix. 
  611.                         Without it, other information is also stripped.
  612.  
  613.                  The remaining options have no effect if -D is chosen.
  614.  
  615.                  -F     By default, FIXPRE replaces Infile's "document 
  616.                         flags."  -F preserves the original document 
  617.                         flags.  It is not clear this is ever useful. 
  618.  
  619.                  -H     By default, FIXPRE eliminates the prefix's 
  620.                         "formatter hash table."  -H preserves it. It 
  621.                         may never be sensible to use this option. 
  622.  
  623.                  -P     With this option, FIXPRE does not strip 
  624.                         printer-related information from the prefix. 
  625.  
  626.                  -I     Strip initial codes. 
  627.  
  628.                  -G     Strip graphics.  This will cause references in 
  629.                         the body of the document to graphics stripped 
  630.                         from the prefix to disappear. 
  631.  
  632.                  -U     Strip document summary. 
  633.  
  634.                  -S     Strip styles from the prefix. 
  635.  
  636.  
  637. WARNING:  If FIXPRE has stripped the printer-related information, do 
  638. not attempt to print the document file from disk before WP5 has 
  639. restored the printer-related information. 
  640.  
  641.  
  642. V.  FONTFILE
  643.  
  644. FONTFILE extracts the list of names of soft font files found in a PRS 
  645. file.  These files must be present on disk and accessible to WP5 in 
  646. order to print documents which use the fonts they contain.  FONTFILE 
  647. can be used in conjunction with DISKFONT to determine whether those 
  648. files are present on disk. 
  649.  
  650.  
  651. Usage:   FONTFILE  Infile [Ofile]
  652.  
  653.  
  654.                  Infile should be a PRS file.  The file extension 
  655.                  defaults to PRS. 
  656.  
  657.                  Output goes to standard output, unless Ofile is 
  658.                  supplied.  Output can, and often should, be piped to 
  659.                  DISKFONT.  See example above.  Or you can redirect the 
  660.                  output to an ASCII text file and then use that file as 
  661.                  input to DISKFONT before printing a document that uses 
  662.                  the PRS file. If Ofile is supplied, the output is in 
  663.                  WP50 format. 
  664.  
  665.  
  666. VI.  FONTLIST
  667.  
  668. FONTLIST displays a list of the names of the fonts used in a WP5 
  669. document file.  (This list is found in the document's prefix.)  This 
  670. list may be useful if you are not sure whether the fonts used in a 
  671. document are available on your disk.  The output also identifies the 
  672. PRS file and printer assumed by the document. 
  673.  
  674. FONTLIST output can be misleading in two ways.  First, the initial 
  675. font, or any font specified in initial codes, or any font specified in 
  676. a document's initial codes setting, will appear on the list even if you 
  677. did not use the font.  (FIXPRE in default mode will delete initial 
  678. fonts.) 
  679.  
  680. Second, fonts once used in a document but later replaced or removed 
  681. will also appear in the list. To avoid listing these fonts, you can 
  682. FIXPRE the document, read it into WP5, and then save it. FONTLIST 
  683. should then produce a list of fonts actually used in the document (plus 
  684. the initial font). 
  685.  
  686. If the second character of a font name (as it appears when you display 
  687. the list of base fonts) is in upper case, the name of the font in the 
  688. FONTLIST output may be preceded by an extraneous character. 
  689.  
  690.  
  691. Usage:  FONTLIST Infile [Ofile] [-gfilespec]
  692.  
  693.                  Infile is a WP5 document file.
  694.  
  695.                  Output is written to standard output unless Ofile is 
  696.                  provided.  If Ofile is provided, output is in WP5 
  697.                  format. 
  698.  
  699.                  -g    If Ofile is provided, output file will have the 
  700.                        same file prefix as filespec.  This option 
  701.                        allows, for example, creation of WP51 output 
  702.                        files, or formatting to a set of initial codes. 
  703.  
  704.  
  705. VII.  IS5XDOC
  706.  
  707. IS5XDOC allows a batch file to determine whether another file is a WP5 
  708. document file, and if so, whether it is 5.0, 5.1 or, assuming WPCorp 
  709. does not change its file formats, 5.2, 5.3, etc.  It does this by 
  710. setting the DOS errorlevel.  Thus: 
  711.  
  712. Usage: IS50DOC Infile
  713.  
  714.          Resulting errorlevel:
  715.  
  716.           0    WP50 document file
  717.           1    WP51 document file
  718.           2    WP52 document file
  719.           n    WP5n document file, where n is a number 
  720.          98    Other file
  721.          99    File not found, etc.
  722.  
  723. How can you use this?  Suppose you wanted to edit WP5 files in 
  724. WordPerfect but other files in ED automatically.  The following batch 
  725. file would work: 
  726.  
  727.          is5xdoc %1
  728.          if errorlevel 99 goto quit
  729.          if errorlevel 98 goto ed
  730.          WP %1
  731.          goto quit
  732.          :ed
  733.          ed %1
  734.          :quit
  735.  
  736. Call the batch file EDIT.BAT and use it this way:
  737.  
  738.          EDIT Infile
  739.  
  740.  
  741. VIII.  LISTMACS
  742.  
  743. LISTMACS produces a list of up to 1000 macros in its input files; both 
  744. WPM and WPK files contain macros (each key redefinition in a WPK file 
  745. is a macro).  The output includes the file name, macro description, 
  746. and, for WPK macros, the name of the key to which the macro is 
  747. assigned.  By default, the output is sorted by filename and, within 
  748. filename, by macro description.  Alternate sorts, or no sort, may be 
  749. selected as options. 
  750.  
  751.  
  752. Usage:  LISTMACS infile .. [infile] [-oOfile] [-sortoption]
  753.  
  754.                  Up to 5 Infiles, which may include wildcards.
  755.  
  756.                  Output to standard output unless Ofile specified with 
  757.                  -o.  If Ofile specified, output is in WP5 format.  WP5 
  758.                  tab settings assume 1" left margin and 10 pitch 
  759.                  monospaced font. 
  760.  
  761.                  Sort options (default is sort by filename):
  762.  
  763.                       -N      No sort
  764.                       -D      Sort on macro Description
  765.                       -K      Sort on Key name
  766.                       -E      Sort on file Extension
  767.  
  768.  
  769.                  Example:
  770.  
  771.                  LISTMACS c:\wp\*.wpk c:\wp\*.wpm -D
  772.  
  773.                  lists macros in all wpm,wpk files, sorted by description
  774.  
  775.  
  776. IX.  MAKETABS
  777.  
  778. MAKETABS converts ASCII text files to WP50 documents, replacing 
  779. sequences of spaces by ordinary left tabs or, optionally, right tabs.  
  780. It is useful for converting columnar material, such as spreadsheet 
  781. output, to WP5 format.  MAKETABS replaces spaces with tabs by either of 
  782. two methods and, in one method, according to either default tab 
  783. settings or those the user supplies. The output WP50 file begins with a 
  784. tab set code if the user supplied a tabstring or tab spacing 
  785. information to the program.  Note that the tab set code always 
  786. indicates ordinary left tabs, even though the tabs appearing in the 
  787. document may be either left or right tabs.  If you want your tab 
  788. settings to indicate right tabs (and you may if, for example, you want 
  789. to extend the columnar lists after converting to WP50), you will have 
  790. to change the tab settings in WP5 manually. 
  791.  
  792. MAKETABS is not well suited to text that is not organized by columns.  
  793. If you have an ASCII file that includes both columnar material and 
  794. ordinary text, it would be best to create separate files, one with the 
  795. columnar material and one with the ordinary text, convert them 
  796. separately, and then recombine them in WP5. 
  797.  
  798. Note that all trailing blanks are stripped before conversion.
  799.  
  800. Note also that MAKETABS cannot handle a line longer than 255 
  801. characters. 
  802.  
  803. Usage:  MAKETABS [-Option] . . . [-Option]
  804.  
  805.  
  806.                Options:
  807.  
  808.                -F     Parameter file name.  Instead of supplying 
  809.                       options on the command line, you may supply them 
  810.                       in a parameter file.  The parameter file is an 
  811.                       ASCII text file containing options, one option 
  812.                       per line.  Thus if you include, e.g., 
  813.                       -Fmyfile.cfg on the command line, you need 
  814.                       include no other options on the command line.  
  815.                       You may, however, include other options on the 
  816.                       command line with you use -f.  However, you 
  817.                       should not duplicate options between the command 
  818.                       line and the parameter file. 
  819.  
  820.  
  821.                       A typical parameter file might look like this:
  822.  
  823.                       -IBudget.prn
  824.                       -oBudget.WP5
  825.                       -R
  826.                       -t10;35;73;88
  827.                       -N2
  828.  
  829.                       With such a parameter file, -F could be the only 
  830.                       option indicated on the command line. 
  831.  
  832.                -O     Output file name.  Require.  Optional only in the 
  833.                       sense that it may be included in the parameter 
  834.                       file rather than on the command line. 
  835.  
  836.                -I     Infile Input filename.  If there is no -I option, 
  837.                       MAKETABS defaults to standard input, and input 
  838.                       may be piped or redirected, or it may come from 
  839.                       the keyboard. 
  840.  
  841.                -T     n1;n2;..;nm Tabstring (in columns of the ASCII 
  842.                       input counting from 0).  If you do not use the -R 
  843.                       option, you may include Rs in  the tab settings 
  844.                       to indicate that particular tabs are to be right 
  845.                       tabs.  For example, if you used -t10;20R;30 as 
  846.                       your tab settings, the first tab would be a 
  847.                       regular left tab, the second a right tab, and the 
  848.                       third a left tab. 
  849.  
  850.                -Sn    Tab spacing (for equally spaced tabs).  In 
  851.                       columns.  Default is 5.  If you wish to use the 
  852.                       default, do not include a -S option. 
  853.  
  854.                -M     Use Method 2 (tabs not based on tabstring or tab 
  855.                       spacing) 
  856.  
  857.                -R     Use Right tabs in all cases (Method 1 only) 
  858.  
  859.                -Nn    MiNimum spaces to replace.  Default is 3. 
  860.  
  861.                -Xn    MaX spaces to replace by a single tab (Method 2).  
  862.                       Default is 80. 
  863.  
  864.                -Ln    WP5 Left margin (inches and tenths). Default 1.0. 
  865.  
  866.                -Bn    n is the number of spaces permitted in the string 
  867.                       between a right tab and the tab stop, if the 
  868.                       string contains non-spaces.  Default is 0.  
  869.                       Whatever the value of n, spaces are not permitted 
  870.                       at the end of the string.  To disable checking 
  871.                       for blanks internal to the string (thus 
  872.                       permitting any number), set n equal to 99 or to 
  873.                       any value greater than or equal to Minimum spaces 
  874.                       to replace. 
  875.  
  876.  
  877. Method 1, the default method, replaces spaces by tabs to match tab 
  878. specifications you supply. The idea is to reproduce in WP5 the ASCII 
  879. text file you started with, using tabs instead of spaces as 
  880. appropriate.  The tab specification is in terms of columns in the ASCII 
  881. text file.  By default, the tab specifications are set this way: 
  882. 5;10;15;20, etc.  Although that corresponds to WP5's default tab 
  883. settings, it will rarely be appropriate for columnar data you wish to 
  884. convert to WP5 format. You therefore will usually have to supply a 
  885. different tab specification. 
  886.  
  887. In order to do that, you have to figure out column positions in your 
  888. ASCII text file, since the tab specification you supply must match the 
  889. ASCII text file.  This is not as easy as it sounds.  Usually when you 
  890. count columns in an ASCII text file, you think of the first column at 
  891. the left of a line as 1.  WP5 thinks of the first column as 0.  In 
  892. order to get things to work well between the ASCII file and WP5, it is 
  893. necessary for you to think of the first column as 0.  The tenth column 
  894. is then 9, and so forth.  You also have to think about how right and 
  895. left tabs relate to the tab settings.  Suppose your ASCII text file 
  896. starts with a series of blanks followed by a word starting in Column 
  897. 10.  That would correspond to a left tab setting of 10.  Suppose 
  898. instead your ASCII text file begins with blanks, followed by a column 
  899. of numbers, with the last digit in column 9.  That would correspond to 
  900. a right tab setting of 10. 
  901.  
  902. As an example, suppose you redirected the output of LISTMACS to an 
  903. ASCII text file but then wanted to convert the ASCII to WP5, with tabs 
  904. rather than spaces.  You would use -T8;14;60 (you would also use -N1, 
  905. because there are likely to be some very short sequences of spaces). 
  906.  
  907. Right tabs and spaces have a complicated relationship.  If you have 
  908. "    100.00" ending at a tab stop, a right tab replaces the spaces.  If 
  909. "        " ends at a tab stop, the spaces are replaced by a right tab, 
  910. because the sequence of spaces is longer than the minimum number of 
  911. spaces to replace).  If "    100.00 " ends at a tab stop, the 
  912. terminating space prevents replacement of the other spaces by a tab 
  913. (assuming the minimum number of spaces to replace is greater than 1). 
  914. If you have, for example, "    John Jones" ending at a tab stop, 
  915. whether the spaces before "John" are replaced by a right tab depends on 
  916. how you have chosen to treat sequences of spaces less than the minimum 
  917. number of spaces to replace.  By default, no spaces are permitted 
  918. between the right tab and the tab stop, so there would be no right tab 
  919. here.  If you use -B99, there is no checking for sequences of spaces 
  920. less than the minimum number of spaces to replace, so there would be a 
  921. right tab here.  You could also set -B1 to permit one space but no more 
  922. (so there would a right tab here because there is only one space 
  923. between "John" and "Jones"), or you could set -B2 to permit two spaces, 
  924. and so forth. 
  925.  
  926. If you do specify tab settings, the appropriate tab set command is 
  927. included at the beginning of the WP5 output file.  Column positions are 
  928. assumed to represent tenths of an inch.  However, the WP5 tab settings 
  929. are not a direct translation into inches of your column specification.  
  930. MAKETABS assumes that the ASCII text file begins at the beginning of a 
  931. line, but that WP5 files have a left margin.  By default, MAKETABS 
  932. assumes a WP5 left margin of 1.0".  So the WP5 tab settings resulting 
  933. from the -T command in the previous paragraph are 1.8", 2.4", and 7.0".  
  934. You can change the assumed left margin with the -L command (e.g., -
  935. L1.5).  MAKETABS does not put a margin change command in the output 
  936. file, but it does adjust the tab settings. 
  937.  
  938. Method 2 ignores tab settings.  It replaces any sequence of spaces of 
  939. at least the minimum length (up to the maximum -- see the -X option 
  940. above) by a single tab.  This is likely to produce reasonable results 
  941. even when the ASCII text file is not perfectly aligned in columns, but 
  942. it will produce very bad results where right tabs are required. 
  943.  
  944. For another example, see below under WHATPTRS.
  945.  
  946. Warning: if your ASCII input includes actual ASCII tab characters, as 
  947. opposed to spaces, MAKETABS will give incorrect results and the ASCII 
  948. tab characters will appear in the output WP5 file as control-Is (^I). 
  949.  
  950.  
  951. X.  MASTER
  952.  
  953. MASTER displays the file dependencies in master document/subdocument 
  954. structures.  MASTER checks to see if a document calls for included 
  955. subdocuments.  If it does, each such subdocument (if it can be found) 
  956. is checked to see whether it calls for included subdocuments.  The 
  957. output shows each subdocument indented under its master document.  Thus 
  958. if document One includes subdocuments OneA, OneB, and OneC, and 
  959. subdocument OneA includes subsubdocuments SubOne and SubTwo, the output 
  960. would look something like this: 
  961.  
  962.          One
  963.            OneA
  964.              SubOne
  965.              SubTwo
  966.            OneB
  967.            OneC
  968.  
  969. In addition, the file size and date may be included on the line with 
  970. the file name, for those files which can be located. 
  971.  
  972.  
  973. Usage:  MASTER Infile [-option] [-option]
  974.  
  975.          Output is written to standard output.  Pipe or redirect as needed.
  976.  
  977.  
  978.          Options: (combined as -D -S or -DS)
  979.  
  980.          -D    include file date
  981.          -S    include file size
  982.  
  983.  
  984.  
  985. XI.  MERGESUM
  986.  
  987. MERGESUM extracts document summaries from WP5 files and writes or 
  988. appends them, along with DOS file directory information, to a WP5 
  989. secondary merge file.  The result is a database of document summaries.  
  990. You can then use the WP5 Merge and Sort functions to manipulate the 
  991. output.  You can also use WordPerfect's Notebook program, a part of 
  992. Office and Library, to display and manipulate the document summaries. 
  993.  
  994. For consistency with prior versions of MERGESUM, output in either an 
  995. old or a new format is available.  The new format, which is the 
  996. default, includes information not in a WP50 document summary but found 
  997. in a WP51 document summary.  To minimize the problems of changing 
  998. format, the new format begins with the same 13 fields as the old 
  999. format. 
  1000.  
  1001. Both the old and new format secondary merge files MERGESUM creates have 
  1002. the following fields: 
  1003.  
  1004.                   1:  File path
  1005.                   2:  File name (without extension)
  1006.                   3:  File extension
  1007.                   4:  Creation date (as it appears in the summary in 
  1008.                       new format, but in old  format, WP51 creation 
  1009.                       dates are converted to the WP50 format, e.g., May 
  1010.                       5, 1990) 
  1011.                   5:  Creation date (yy/mm/dd, for easier sorting) 
  1012.                   6:  File date (yy/mm/dd) from DOS directory 
  1013.                   7:  File size (bytes, 7 column field, right 
  1014.                       justified) 
  1015.                   8:  Descriptive Filename (for WP51 summaries in old 
  1016.                       format, this is Document Name - Document Type; in 
  1017.                       new format it is just Document Name) 
  1018.                   9:  Subject/Account (WP50), or Subject (WP51) 
  1019.                  10:  Author 
  1020.                  11:  Typist 
  1021.                  12:  Comments (WP50) or Abstract (WP51) 
  1022.                  13:  Volume Label 
  1023.  
  1024. The new format has the following additional fields:
  1025.  
  1026.                  14:  Document Type (blank for WP50 summaries) 
  1027.                  15:  Account (blank for WP50 summaries) 
  1028.                  16:  KeyWords (blank for WP50 summaries) 
  1029.                  17:  Version Number of document (5.0 or 5.1)
  1030.  
  1031. If, for example, you wanted a report listing, in three columns, the 
  1032. full file name, the creation date in yy/mm/dd form, and the Descriptive 
  1033. Filename, you would use a primary merge file like this: 
  1034.  
  1035.  
  1036. ^F1^^F2^.^F3^[Tab]^F5^[Tab]^F8^
  1037.  
  1038.  
  1039. (After the merge output file is created, replace hard page breaks by 
  1040. hard returns.  Or use ^N^P^P at the end of the primary merge file to 
  1041. avoid hard page breaks.) 
  1042.  
  1043. You can replace the existing comment/abstract field by a new one 
  1044. consisting of, roughly, the first 400 characters in the document.  One 
  1045. option (-B) causes this replacement only if the existing 
  1046. comment/abstract field is blank (as it will be if you use long file 
  1047. names in WP51 but do not otherwise use document summaries).  Another
  1048. (-R) causes this replacement for every file with a document summary.  
  1049. Neither option has any effect on documents that have no document 
  1050. summary at all.  Other options address documents without summaries. 
  1051.  
  1052. By default, the secondary merge file does not include WP5 document 
  1053. files that lack document summaries.  However, the filename, file date, 
  1054. file size, volume label, and version number for these files are 
  1055. available.  One option (-S) writes this information to standard output.  
  1056. You can also choose to include records for these files in the secondary 
  1057. merge file, using just the DOS file directory information (-A) or also 
  1058. including the first roughly 400 characters of the document text as the 
  1059. "comments" or "abstract" (-C). 
  1060.  
  1061. MERGESUM recognizes date information in the default format for the U.S. 
  1062. language version; it also recognizes European format written dates 
  1063. (e.g., 3 March 1990) and months written in French, Dutch, and Spanish. 
  1064. Where MERGESUM creates a written date for field 4 in the output 
  1065. secondary merge file, the language is always English.  Where MERGESUM 
  1066. creates a written date for field 4 from a WP51-format document summary 
  1067. and the date information format in the document summary differs from 
  1068. the U.S. language default of mm-dd-yy, the result will be incorrect, as 
  1069. will be the result in field 5. 
  1070.  
  1071. MERGESUM permits use of an "indirect" input file specification.  If an 
  1072. input file name on the command line is preceded by @ (e.g., 
  1073. @c:\wp50\flist), the file is not a WP5 document, but an ASCII text file 
  1074. containing a list of input file specifications, one per line.  (If you 
  1075. want to use MERGESUM on a WP5 file whose name begins with @, you must 
  1076. specify that file in an indirect file, not on the command line.) 
  1077.  
  1078.  
  1079. Usage:  MERGESUM Infile [Infile] -oOfile [Option] [Option]
  1080.                  
  1081.                  Up to 5 Infiles, which may include wildcards.
  1082.  
  1083.                  If Infile is specified as @Infile, infile is an ASCII 
  1084.                  text file containing a list of filenames 
  1085.  
  1086.                  -oOfile the secondary merge output file
  1087.  
  1088.  
  1089.                  Options: (separated by blanks, e.g., -N -U, or single 
  1090.                  letter options, but not -D, can be combined, as -NU) 
  1091.  
  1092.                       -N   do NOT use the New output format
  1093.  
  1094.                       -U   Update the output file (appends to the 
  1095.                            output file if it already exists, but does 
  1096.                            not check for duplicates) 
  1097.  
  1098.                       -A   include All WP5 files in Ofile, even if they 
  1099.                            have no document summary. 
  1100.  
  1101.                       -C   like -A, but includes the beginning of the 
  1102.                            document text as Comments or Abstract for 
  1103.                            those files lacking a document summary. 
  1104.  
  1105.                       -B   replace Blank comment/abstract fields by the 
  1106.                            beginning of the document. 
  1107.  
  1108.                       -R   Replace all comment/abstract fields by the 
  1109.                            beginning of the document. 
  1110.  
  1111.                       -Dmmddyy or mmddyyyy
  1112.                            Process only files dated mmddyy or later.  
  1113.                            If yy, century is 19.  For months, days, or 
  1114.                            years less than 10, initial zero must be 
  1115.                            specified (e.g., 060991).  Year must be 
  1116.                            greater than 1979 and less than 2100. 
  1117.   
  1118.                       -S   information on files with no summaries 
  1119.                            written to Standard output. 
  1120.  
  1121.                       Note:  You can use -S along with -A or -C.
  1122.  
  1123.                Example
  1124.  
  1125.     >MERGESUM c:\memos\*.* c:\notes\*.* -oe:\admin\mydocs -CRU -d010191
  1126.  
  1127.     This example processes all the files with DOS file dates (i.e., 
  1128.     last changed dates) of January 1, 1991, or later in subdirectories 
  1129.     memos and notes on drive c:, adding the output to the existing 
  1130.     secondary merge file c:\admin\mydocs (or creating a new file of 
  1131.     that name if one does not already exist).  Files are included in 
  1132.     the output whether or not they have document summaries (-C).  In 
  1133.     all cases, the comment/abstract field in the output consists of the 
  1134.     first 400 characters in the document file (-C for documents without 
  1135.     document summaries, -R for documents with document summaries). 
  1136.  
  1137. WPDOCS.NB, written by Barry Zimmerman and distributed with WPTOOLS by 
  1138. Mr. Zimmerman's permission, gives a very nice display of MERGESUM old 
  1139. format output in WordPerfect's Notebook program.  To create a Notebook 
  1140. file, simply designate (a copy of) WPDOCS.NB as the MERGESUM output 
  1141. file, using the -U option.  WPDOCS2.NB is similar, but is designed for 
  1142. the new output format. 
  1143.  
  1144.  
  1145. XII.  PRINTIT
  1146.  
  1147. PRINTIT has nothing to do with WP5 and does no printing.  It formats 
  1148. ASCII text files for printing. Many WPTOOLS programs write output to 
  1149. standard output by default.  This output is unpaginated and has no left 
  1150. margin.  Sending it directly to your printer will produce less than 
  1151. ideal results. PRINTIT reads standard input, paginates it, puts a 
  1152. heading (with date, page number, and optionally a title) on each page, 
  1153. and writes it to standard output.  It does not use any printer control 
  1154. codes -- pages are filled with blank lines where necessary.  By 
  1155. default, it provides no left margin, assumes the page length is 66 
  1156. lines, and puts 60 lines of text on the page.  You can specify a left 
  1157. margin on the command line, and you can clone the program to change the 
  1158. default left margin, the page length, and the last printing line.  The 
  1159. default page length and bottom line are suitable for most printers.  
  1160. For printers such as the HP LaserJet, you will want to clone the 
  1161. program to change the number of lines of text on a page. 
  1162.  
  1163.  
  1164. PRINTIT does NOT write anything to the printer. It writes to standard 
  1165. output.  You can redirect its output to the printer, or you can 
  1166. redirect its output to a file and copy the file to the printer. 
  1167.  
  1168.  
  1169. Usage:  PRINTIT ["title"] [-Option]
  1170.  
  1171.                  Input from standard input
  1172.  
  1173.                  Output to standard output
  1174.  
  1175.                  Title appears on each page of the output.  Enclose the 
  1176.                  title in double (") or single ( ', but NOT ` ) quotes 
  1177.                  if it contains blanks.  If the title includes one kind 
  1178.                  of quotation mark, use the other to enclose it. 
  1179.  
  1180.  
  1181.                  Options:
  1182.  
  1183.                  -?   Help
  1184.  
  1185.                  -n   n is 0-20, the number  of columns to offset the 
  1186.                       output from the left 
  1187.                       edge.
  1188.  
  1189.                  -C   Clone for page length, bottom line, offset 
  1190.                       (number of blank columns to insert before the 
  1191.                       text). 
  1192.  
  1193.                       Cloning is prompted -- just follow the 
  1194.                       directions.  Cloning overwrites the executable 
  1195.                       file with a modified version. If you use DOS 2.x, 
  1196.                       you must have PRINTIT.EXE in the default 
  1197.                       directory.  If you use DOS 3.x or later, PRINTIT 
  1198.                       will find itself under whatever name you use for 
  1199.                       it. 
  1200.  
  1201. PRINTIT is based on code in Software Tools in Pascal, by Kernighan and 
  1202. Plauger.  The cloning routine is David Doty's WritExec, which is based 
  1203. on David Dubois' AutoInst.  Because of the origins of the program, it 
  1204. is not subject to the limitations of the WPTOOLS license provisions. 
  1205. Anyone may use PRINTIT without paying the WPTOOLS license fee. 
  1206.  
  1207.  
  1208. XIII.  PRSFONTS
  1209.  
  1210. PRSFONTS lists the fonts available in a WP5 PRS file.  This is useful 
  1211. if you have a laser printer and create numerous PRS files.  PRSFONTS 
  1212. can number the list, starting with zero.  These numbers are the basis 
  1213. for the ID numbers you must supply to an HP LaserJet Series II printer, 
  1214. and perhaps other printers, if you download soft fonts from the DOS 
  1215. command line, rather than relying on WP5 to download them. 
  1216.  
  1217.  
  1218. Usage:  PRSFONTS Infile [Ofile] [-N]
  1219.  
  1220.                  Infile is a WP5 PRS file.  If no extension is 
  1221.                  supplied, extension PRS is assumed. 
  1222.  
  1223.                  Output is written to standard output unless Ofile is 
  1224.                  specified.  If it is specified, output is in WP5 
  1225.                  format. 
  1226.  
  1227.                  -N  Number the fonts.
  1228.  
  1229.  
  1230. XIV.  STYLIST
  1231.  
  1232. STYLIST produces a list of up to 1000 styles in document files and 
  1233. style libraries.  The list includes the filename, the name of the 
  1234. style, the letter P (for paired), the letter O (for open), or the 
  1235. letter T (for ouTline) to indicate the type of style, and the style 
  1236. description.  By default, the output is sorted by filename and within 
  1237. filename by style name.  Other sorting options are available. 
  1238.  
  1239.  
  1240. Usage:  STYLIST Infile [Infile] [-oOfile] [-sortoption]
  1241.  
  1242.                  Up to 5 Infiles may include drive, directory, 
  1243.                  wildcards. 
  1244.  
  1245.                  Output to standard output, unless Ofile is specified 
  1246.                  (with -o).  If Ofile specified, output is in WP5 
  1247.                  format.  WP5 formatting sets left and right margins to 
  1248.                  0.5".  Tab settings based on assumption of 10 pitch 
  1249.                  monospaced font. 
  1250.  
  1251.                  Sort options (default is sort by filename):
  1252.  
  1253.                       -N    No sort 
  1254.                       -D    Sort on style Description 
  1255.                       -M    Sort on style naMe 
  1256.                       -T    Sort on style Type (Paired, Open, ouTline) 
  1257.                       -E    Sort on file Extension 
  1258.  
  1259.          Example: STYLIST c:\wp\*.sty c:\wp\*.doc -D 
  1260.  
  1261.          lists styles in all sty and doc files, sorted by description.
  1262.  
  1263.  
  1264. XV.  STYLEUSE
  1265.  
  1266. WP5 styles are stored in the document prefix -- you see the styles 
  1267. stored there listed when you call up the list of styles.  When you use 
  1268. a style, style on and style off codes are inserted into the document; 
  1269. between those codes go the codes which make up the body of the style. 
  1270.  
  1271. By default, STYLEUSE produces two lists, a list of the styles actually 
  1272. found in the text of a document (whether or not they are still in the 
  1273. document prefix), and a list of the styles found in the prefix but not 
  1274. found in the text of the document (which usually means not used in the 
  1275. document).  STYLEUSE also can delete unused (or all) styles from the 
  1276. prefix.  And it can delete the style on and style off codes from the 
  1277. document itself, leaving the codes which make up the body of the style. 
  1278.  
  1279. The main reason to delete styles is to make the document file smaller.  
  1280. If styles are deleted from the prefix, the text of the document is 
  1281. unaffected, although the styles deleted can no longer be chosen from 
  1282. the style menu.  But you can read the styles into the document prefix 
  1283. again from a style library.  If you delete the style on and style off 
  1284. codes, you can no longer change the document by editing the style -- 
  1285. the codes added by the style are frozen, in the sense that they have 
  1286. the same status as any other codes you added to the document, since 
  1287. WordPerfect no longer knows the codes were added by a style.  
  1288. Therefore, you should not delete styles from the body of a document 
  1289. until you are very sure you do not want to change the document by 
  1290. changing the styles. 
  1291.  
  1292.  
  1293. Usage:  StyleUse Infile [Ofile] [-Option] .. [-Option]
  1294.  
  1295.  
  1296.                  Infile:  The input WP5.x file.  May include wildcards 
  1297.                           (?,*) 
  1298.  
  1299.                  Ofile:   Output file. Not used with wildcards or if 
  1300.                           none of the delete options is selected. 
  1301.  
  1302.                  Options: (separately as, e.g., -N -U, or combined, 
  1303.                           e.g., -NU) 
  1304.  
  1305.                   -N     do Not list styles.
  1306.                   -U     delete Unused styles from prefix
  1307.                   -S     delete all Styles from prefix
  1308.                   -D     delete style information from Document body
  1309.  
  1310.                   The following options are identical to options in 
  1311.                   FIXPRE.  See the FIXPRE documentation for further 
  1312.                   explanation. 
  1313.  
  1314.                  -K     kills the backup if no ofile specified 
  1315.                  -T     output gets Time and date of input file 
  1316.                  -A     process wildcard files only if archive bit set 
  1317.                  -E     process wildcard through directory trEE
  1318.  
  1319.                  The list of used and unused styles is written to 
  1320.                  standard output, and may be piped or redirected as 
  1321.                  needed. 
  1322.  
  1323. If either the U or the S option is chosen, STYLEUSE will delete from 
  1324. the document prefix not only the styles to be deleted, but also data 
  1325. packets marked as deleted, just as FIXPRE does (but STYLEUSE does not 
  1326. do this if the U option is chosen and there are no unused styles). 
  1327.  
  1328. If all you want to do is delete all styles from the prefix, FIXPRE is a 
  1329. better choice. 
  1330.  
  1331.  
  1332. XVI.  TARGETS
  1333.  
  1334. TARGETS lists the automatic reference targets and references in a WP5 
  1335. document.  It first lists the targets by name, with the number of times 
  1336. that target name is used.  Targets which are not referenced in the 
  1337. document are marked by an asterisk.  The list of targets is followed by 
  1338. a list of references, which includes the name of the target referenced, 
  1339. the type of reference, and the number of references of that type to the 
  1340. particular target.  References to targets not found in the file are 
  1341. marked with an asterisk. 
  1342.  
  1343.  
  1344. Usage:  Targets  Infile
  1345.  
  1346.                  Infile is a WP5 document.
  1347.                  Output is written to standard output.
  1348.  
  1349.  
  1350.  
  1351. XVII. WHATPTRS
  1352.  
  1353. A single ALL file can be used to create PRS files for a number of 
  1354. different printers.  WHATPTRS lists the printers for which the input 
  1355. ALL file can create drivers.  Each line of output begins with the name 
  1356. of the input ALL file, followed by the name of a printer.  The program 
  1357. can usually sort by printer name.  Whether WHATPTRS can sort all the 
  1358. printer names depends on how many printers there are in the input ALL 
  1359. files and on the amount of memory available.  If you cannot sort the 
  1360. full collection with WHATPTRS itself, you could pipe unsorted output to 
  1361. the DOS SORT routine.  The WHATPTRS sort is not sensitive to case; 
  1362. because the DOS sort is sensitive to case, the -L option is available 
  1363. to put printer names into all lower case.  Some printer names in ALL 
  1364. files begin with *, to indicate that the source of the printer 
  1365. information in the file is not WordPerfect Corporation.  To permit a 
  1366. proper sort, WHATPTRS moves the * from the beginning to the end of the 
  1367. printer name. 
  1368.  
  1369. Usage:  WHATPTRS Infile Infile [-oOfile] [-option] [-option]
  1370.  
  1371.                  Up to 5 Infiles.  Each may include wildcards.  ext 
  1372.                  defaults to ALL. 
  1373.  
  1374.                  Output to standard output unless Ofile is specified. 
  1375.  
  1376.  
  1377.                  Options:
  1378.  
  1379.                  -oOfile   Output WP5 file.
  1380.  
  1381.                  -S        Sort output by printer name.
  1382.  
  1383.                  -L        output Lower case printer names.
  1384.  
  1385.                  (S and L may be combined as -SL)
  1386.  
  1387.  
  1388.          Examples
  1389.                  WHATPTRS *|PRINTIT>prn
  1390.  
  1391.                  Prints a list of printers in all the ALL files in the 
  1392.                  default directory. 
  1393.  
  1394.  
  1395.                  WHATPTRS * -L|Sort /+15|MAKETABS -oOutFile -M
  1396.  
  1397.                  Produces (in OutFile) an alphabetically sorted list of 
  1398.                  printers in all the ALL files in the default 
  1399.                  directory, in the form of a WP5 file formatted with 
  1400.                  tabs rather than spaces.  You can get the same results 
  1401.                  with 
  1402.  
  1403.                       WHATPTRS * OutFile -S -L
  1404.  
  1405.  
  1406.                  WHATPTRS * -L|find "panasonic" >prn
  1407.  
  1408.                  Prints the names of all Panasonic printers in the ALL 
  1409.                  files in the default directory, together with the name 
  1410.                  of the ALL file applicable to each printer. 
  1411.  
  1412.  
  1413. XVIII. WP5LOOK
  1414.  
  1415. WP5LOOK is a file browsing program for WP5 document files (but it will 
  1416. also browse other files.  It displays WP5 document files listed on the 
  1417. command line, supplied in response to prompts, selected from pick 
  1418. lists, or piped from another program, such as a file uncompressor.  The 
  1419. document summary is displayed if it exists.  The program pauses as each 
  1420. screen is displayed.  If there is more information in the document, you 
  1421. can page forward.  Generally, you can also page backward, although only 
  1422. for a few screens (the number varies, but is never more than nine).  At 
  1423. each screen, you also have the options of going back to the beginning 
  1424. of the file (Home), jumping to the end of the file, going on to the 
  1425. next file, adding to the list of files to browse, or quitting the 
  1426. program.  (If there are no more files, the next file and quit options 
  1427. produce the same results.)   If you chose the file from a pick list, 
  1428. you can return to the pick list to select another file.  You can also 
  1429. search for strings in the displayed file.  And you can "dump" the 
  1430. information on the screen to an ASCII text file.  The top line of the 
  1431. display indicates the corresponding WordPerfect page numbers. 
  1432.  
  1433. Because WP5LOOK will accept piped input, it can be used with many file 
  1434. manager and shell programs to display files.  If the program with which 
  1435. you want to use it allows you to specify the file browser, you simply 
  1436. specify WP5LOOK.  Some programs do not allow you to specify the file 
  1437. browser, and then some ingenuity is required.  For example, QFiler, an 
  1438. excellent file management program, assumes the file browser is 
  1439. List.com.  You can use WP5LOOK with QFiler by renaming WP5LOOK.EXE as 
  1440. List.com. 
  1441.  
  1442. WP5LOOK does not correctly format files, but it usually does a 
  1443. reasonable approximation.  The program is designed for use when you 
  1444. need to rummage through one or more WP5 documents quickly (or when not 
  1445. enough memory is available to use WP5 itself), not for when you care 
  1446. about the details of formatting.  Here are some of the formatting 
  1447. problems: 
  1448.  
  1449.          By default, WP5LOOK reformats documents so that they fit 
  1450.          within the confines of an 80 character screen line (although 
  1451.          an option allows lines of up to 254 characters, so that you 
  1452.          must scroll the screen to see the entire line).  Paragraphs 
  1453.          are reformatted by default to a 75-character line, although 
  1454.          you can change the number; the right margin is ragged, because 
  1455.          words are not split at hyphens.  Margin changes and line 
  1456.          spacing are ignored. Multiple columns are placed end to end. 
  1457.  
  1458.          Everything is displayed in the same font. 
  1459.  
  1460.          Tab settings are ignored.  Ordinary tabs are displayed as five 
  1461.          spaces, more exotic tabs as a single space.  Indent codes are 
  1462.          all treated as ordinary, not left-right.  An indent code is 
  1463.          represented as five spaces.  Indented text is indented five 
  1464.          spaces, regardless of how deeply the text is indented. 
  1465.  
  1466.          Characters a standard IBM PC cannot display and overstruck 
  1467.          characters are displayed as upsidedown question marks. 
  1468.  
  1469.          Footnotes and endnotes are displayed embedded in the text 
  1470.          where they occur.  They are set off by line breaks and 
  1471.          enclosed between **FN: and **EFN. 
  1472.  
  1473.          Initial codes are ignored. 
  1474.  
  1475.          The contents of all "boxes" (except text boxes) is ignored, 
  1476.          although the fact that a box exists is displayed, along with 
  1477.          the caption (and text where there is any). 
  1478.  
  1479.          Tables are not displayed in normal table format.  Instead, the 
  1480.          cells are listed in sequence, identified by row and column.  
  1481.          Certain kinds of cell contents are not displayed. 
  1482.  
  1483.  
  1484. If a file selected for viewing is not a WP5 document file (and if you 
  1485. are not using piped input), the file is also displayed -- but in a very 
  1486. different way, with a different kind of display and a different set of 
  1487. commands.  This alternative display mode is described below. 
  1488.  
  1489.  
  1490. Usage:  WP5LOOK  [options] [Infile] .. [Infile] 
  1491.  
  1492.  
  1493.          Options and Infiles may appear in any order.  Infile may 
  1494.          include wildcards.  You may specify as many Infiles as fit on 
  1495.          the command line.  If no input file is specified and input is 
  1496.          not piped to the program, you are prompted for a single file 
  1497.          specification.  If the input file specification you supply in 
  1498.          response to the prompt contains wildcards, you are asked 
  1499.          whether you want to view all files matching the file 
  1500.          specification.  If you response N (for no), a list of files 
  1501.          matching the file specification is displayed.  You may browse 
  1502.          this list using standard cursor movement keys and select a 
  1503.          single file to browse by hitting the Return key while the file 
  1504.          is highlighted. 
  1505.  
  1506.          Options
  1507.  
  1508.          -R(Y/N)      Reformat text.  The default is RY.  If you select 
  1509.                       RN, text is not reformatted, and the display may 
  1510.                       be scrolled so that you can view long lines. 
  1511.  
  1512.  
  1513.          -P           Pick list.  If you have wildcard file 
  1514.                       specifications on the command line, -P produces a 
  1515.                       pick list (for the first file specification, and 
  1516.                       later for the others when they are encountered as 
  1517.                       files are processed) instead of a display of the 
  1518.                       first file matching the wildcard specification. 
  1519.  
  1520.          -M           Force Mono.  If you have a color computer system 
  1521.                       and do not like WP5LOOK's color choices, use this 
  1522.                       option. 
  1523.  
  1524.          -Wnn         Screen Width in characters (default is -W75).  
  1525.                       This option is like key W, discussed below.  It 
  1526.                       has no effect if you select RN. 
  1527.  
  1528.          -H           Displays help messages. 
  1529.  
  1530.          -?           Same as -H.
  1531.  
  1532. The command line options (other than -H and -?) may also be provided by 
  1533. means of a configuration file.  On startup, WP5LOOK looks for a 
  1534. configuration file, WP5LOOK.CFG, in the default directory and then, if 
  1535. you are using DOS 3.0 or greater, in the directory where WP5LOOK is 
  1536. located.  The configuration file is an ASCII text file that includes 
  1537. one or more of the command line options, one per line, exactly as they 
  1538. would appear on the command line.  (If you include an option in the 
  1539. configuration file and also on the command line, the command line 
  1540. option overrides the option selected in the configuration file.) 
  1541.  
  1542. Once you have started the program, operation with WP5 files is prompted 
  1543. and for the most part intuitive.  The bottom line on the screen 
  1544. indicates which keystroke options may be chosen (except for W, D, P, 
  1545. and Alt-F, which are never indicated explicitly).  In some cases, you 
  1546. can use different keystrokes to achieve the same result.  The prompt 
  1547. does not indicate that flexibility.  Here is the full set of options, 
  1548. only some of which may be available at particular screens: 
  1549.  
  1550.  
  1551.          Move one screen forward   PgD, [space], [return]
  1552.          To last screen in file    [End]
  1553.          Move one screen Back      PgU, b, B
  1554.          To first screen in file   [Home]
  1555.          To next file (or pick
  1556.           list if you started
  1557.           there)                   N        
  1558.          New file spec             Alt-F    
  1559.          Scroll right (left)       -> (<-)  
  1560.          Scroll full left          Ctrl <-  
  1561.          Exit from the program     Q, [esc], F7 
  1562.          Search (exact match)      S        
  1563.          Find (match ignoring case)F
  1564.          Line Width: 10-80 chars   W
  1565.          Dump screen to file       D
  1566.          Display Pick List         P, F5
  1567.  
  1568. Displaying Pick Lists
  1569.  
  1570. Choosing P (or F5) displays the pick list generated from the most 
  1571. recently evaluated wildcard file specification.  Normally this will be 
  1572. the wildcard specification that resulted in the file you were viewing 
  1573. when you chose P, but it will not always be.  Note also that if you 
  1574. used a pick list to select the file currently displayed, the N command 
  1575. returns you to a pick list. 
  1576.  
  1577. New File Spec
  1578.  
  1579. Alt-F allows you to add a file specification to those you are already 
  1580. browsing.  The prompts work in much the same manner as the prompts 
  1581. resulting from omitting file specifications from the command line.  
  1582. Alt-F in effect interrupts the sequence of files to be browsed and 
  1583. begins a new sequence.  After the program finishes browsing the files 
  1584. resulting from Alt-F, it returns to the sequence it had temporarily 
  1585. abandoned. 
  1586.  
  1587. Searching and Finding
  1588.  
  1589. Search and Find prompt for a search string.  Search looks for an exact 
  1590. match to your search string.  Find looks for a match but ignores 
  1591. differences in case.  (Searching for cat will not match CAT, but 
  1592. Finding cat will match CAT.)  If you have previously done a Search or 
  1593. Find in the same WP5LOOK session, you will be shown your previous 
  1594. search string.  If you want to use the same search string, simply hit 
  1595. <enter>.  You can also edit the search string.  If the first keystroke 
  1596. you hit is a character rather than an editing key, the previous search 
  1597. string will disappear, and you simply enter (and edit) a new one.  If 
  1598. you are using the RN option, the match may not be located in the 
  1599. visible part of the screen, but you can scroll the screen to view it. 
  1600.  
  1601. Search and Find search from the currently displayed screen to the end 
  1602. of the file.  The first screen containing a match is displayed, with 
  1603. each line containing the match highlighted.  After each match, you are 
  1604. asked whether you want to continue looking for the same string.  To 
  1605. search the entire file, you must start the search at the beginning of 
  1606. the file (which you can reach with the Home key). 
  1607.  
  1608. Leading and trailing blanks in the search string can be used if you 
  1609. want to limit searches to matching whole words.  For this purpose, 
  1610. screen display lines of your WP5 document file are treated as beginning 
  1611. and ending with blanks.  The search string may include blanks, so you 
  1612. can search for phrases (limited to 60 characters).  However, matches 
  1613. are limited to a single line -- if a phrase is split between lines in 
  1614. the display, you cannot match it. 
  1615.  
  1616. The search string can be edited using the cursor keys and other keys.  
  1617. WordStar editing commands are also available.  A complete list of 
  1618. editing commands follows (commas indicate alternatives): 
  1619.  
  1620.  
  1621.          <Enter> (<Return>)       Accept line
  1622.          <Esc>                    Quit without changing line; don't 
  1623.                                   search 
  1624.          <Left>,<CtrlS>           Cursor left one character
  1625.          <Right>,<CtrlD>          Cursor right one character
  1626.          <CtrlLeft>,<CtrlA>       Cursor left one word
  1627.          <CtrlRight>,<CtrlF>      Cursor right one word
  1628.          <Home>,<CtrlQ><S>        Cursor to line beginning
  1629.          <End>,<CtrlQ><D>         Cursor to line end
  1630.          <Del>,<CtrlG>            Delete character at cursor
  1631.          <Bksp>,<CtrlH>,<CtrlBksp>Delete character to left of cursor
  1632.          <CtrlEnd>,<CtrlQ><Y>     Delete to end of line
  1633.          <CtrlY>, <CtrlX>         Delete entire line
  1634.          <CtrlHome>               Delete from beginning of line
  1635.          <CtrlT>                  Delete word to right of cursor
  1636.          <Ins>                    Toggle insert mode on or off.  Size 
  1637.                                   of cursor indicates the mode.  
  1638.                                   Default is insert mode off. 
  1639.          <CtrlR>,<CtrlQ><L>       Restore original contents of line 
  1640.                                   after editing 
  1641.  
  1642.  
  1643. These editing commands work with responses to other prompts as well. 
  1644.  
  1645.  
  1646. Dumping Screens to a File
  1647.  
  1648. When you type a D to dump a screen to an ASCII text file, you are asked 
  1649. for a file name.  The next time you type a D, the same file name will 
  1650. be proposed.  Hit Return to append to that file, or enter a new file 
  1651. name to use a different file. 
  1652.  
  1653.  
  1654. Piped Input
  1655.  
  1656. Piped input can present problems when more than one file is piped.  
  1657. Suppose you want to pipe all the files in MYDOCS.ZIP to WP5LOOK, using 
  1658. Phil Katz's PKUNZIP program.  The command line would look something 
  1659. like this: 
  1660.  
  1661.          >PKUNZIP -c MYDOCS |WP5LOOK
  1662.  
  1663. This works well if all the files in MYDOCS.ZIP are WP5 document files.  
  1664. It will also work well if all the files that are not WP5 document files 
  1665. are extracted before the WP5 document files are extracted.  But if the 
  1666. WP5 document files are interspersed with the other files, there can be 
  1667. a problem.  The reason is that when input is piped, WP5LOOK can locate 
  1668. the beginning of a WP5 document file, but it cannot locate the end of a 
  1669. WP5 document file.  So once WP5LOOK begins processing a piped WP5 
  1670. document file, it will continue processing until either the end of all 
  1671. piped input or the beginning of the next WP5 document file.  Thus an 
  1672. ASCII file which follows a WP5 document file in a stream of piped input 
  1673. will be displayed as part of the preceding WP5 document file.  The same 
  1674. is true of binary files, such as EXE and COM files.  However, binary 
  1675. files may contain information that will cause WP5LOOK to behave in very 
  1676. strange ways. 
  1677.  
  1678. Browsing non-WP5 files 
  1679.  
  1680. If WP5LOOK finds a file that is not a WP5 document file, it displays it 
  1681. in an entirely different way -- the screen looks different, and there 
  1682. are different commands.  The display is not page oriented. Instead, you 
  1683. can simply scroll backwards and forwards. 
  1684.  
  1685. Here is a summary of the commands: 
  1686.  
  1687. Cursor movement:  The cursor arrow keys move you one line, or one 
  1688. column, in the appropriate direction.  <CtrlRight> and <CtrlLeft> move 
  1689. ten columns right or left.  <Home> moves to the first column, <End> 
  1690. moves to display the end of the longest line on screen.  <PgUp> and 
  1691. <PgDn> scroll one screen up or down.  <CtrlPgUp> and <CtrlPgDn> move to 
  1692. the beginning or the end of the file.  (For all these movements, 
  1693. WordStar-like commands also work.)  To jump to a particular line, use 
  1694. <CtrlJ><L> and you will be prompted for the line number. 
  1695.  
  1696. Searching and Finding:  To search for a string, use S or F (or 
  1697. <CtrlQ><F>).  You will be prompted for a string, as in WP5 display 
  1698. mode.  After you have entered the string, you will be prompted for 
  1699. options; enter as many as you need.  Option U yields a case-insensitive 
  1700. search (like Find in WP5 mode); otherwise the search is case sensitive 
  1701. (like Search in WP5 mode).  Option G searches the entire file, instead 
  1702. of just from the cursor.  Option B searches backward instead of 
  1703. forward.  To repeat the last search, use <CtrlL>. 
  1704.  
  1705. Other Commands:  <CtrlH> toggles between the normal ASCII display mode 
  1706. and hex mode.  <CtrlQ><H> strips the high bit of each character, which 
  1707. is useful for viewing WordStar files.  <CtrlQ><T> toggles the display 
  1708. of tabs between spaces and tab characters.  <esc>, <Q>, and <F7> exit 
  1709. from the program.  <N>, <P>, and <F5> all exit from the display of the 
  1710. particular file;  if you selected the file from a pick list, you are 
  1711. returned to the pick list, and otherwise you move to the next file. 
  1712.  
  1713. Memory Requirements
  1714.  
  1715. WP5LOOK takes a fair amount of memory.  Loading the program requires 
  1716. nearly 166K, and once loaded the program demands additional memory.  If 
  1717. not enough is available to meet the demand (the amount demanded 
  1718. depends on the dimensions of your screen display), the program exits 
  1719. with an explanation.  Beyond that point, insufficient memory may affect 
  1720. program functions.  The number of screens you can move backward is 
  1721. limited by memory -- with tight memory constraints, there may be no 
  1722. ability to move backward.  Display of non-WP5 files requires additional 
  1723. memory, which may not be available.  It is even possible there will not 
  1724. be enough memory to display a pick list under certain circumstances.
  1725.  
  1726. Versions of WP5LOOK earlier than 4.0 (which was introduced with Version 
  1727. 5.1 of WPTOOLS) have more limited capabilities and require 
  1728. significantly less memory.  In case you need the functions of WP5LOOK 
  1729. but do not have enough available memory to use Version 4.0 or later, an 
  1730. earlier version is included with the registered release of WPTOOLS 5.1.
  1731.  
  1732.  
  1733. XIX.  WPGSIZE
  1734.  
  1735. WPG graphics files identify the dimensions of the "image coordinate 
  1736. space" for the graphics they contain, but WP5 never displays that 
  1737. information.  WPGSIZE extracts that information from the file and 
  1738. displays the full path name of the file, followed by the width and 
  1739. height of the image coordinate space in inches.  Normally, you would 
  1740. use a wildcard file specification.  By default, the output is then 
  1741. sorted by filename.  It can also be sorted by directory (and by 
  1742. filename within directories). 
  1743.  
  1744. WPG graphics appear with least distortion if the dimensions are in the 
  1745. same proportions as the dimensions of the image coordinate space.  In 
  1746. principle, WP5 can automatically scale the dimensions of a graphic to 
  1747. these proportions, but there may be problems.  The information WPGSIZE 
  1748. provides can be used to cope with those problems. 
  1749.  
  1750.  
  1751. Usage:   WPGSIZE infile [-Option] .. [-Option]
  1752.  
  1753.                  Infile is a WPG file, but may include wildcards.  
  1754.                  Default extension is WPG 
  1755.  
  1756.                  Output to standard output
  1757.  
  1758.                  Options:
  1759.  
  1760.                  -E     process wildcard through directory trEE 
  1761.                  -T     Tab rather than spaces in output
  1762.  
  1763.                         By default, the full file name is separated 
  1764.                         from the dimensions by spaces in the output.  
  1765.                         If you want to reformat (or sort) the output in 
  1766.                         WP5, it is convenient to replace the spaces by 
  1767.                         a single tab.  You could use MAKETABS to do 
  1768.                         this, but the -T option does it directly. 
  1769.  
  1770.  
  1771.                  Sort options (default is sort by filename): 
  1772.                
  1773.                  -N     No sort
  1774.                  -D     sort on Directory name
  1775.  
  1776.  
  1777.          Example:
  1778.  
  1779.                >WPGSIZE c:\* -T -E
  1780.  
  1781.                Lists all WPG files on drive c, with tabs in the output 
  1782.                list instead of spaces.  Output is sorted by filename. 
  1783.  
  1784.  
  1785. WPGSIZE can process only 2000 WPG files at a time if you want sorted 
  1786. output.  If you want a list with more than 2000 WPG files, use the -N 
  1787. option; if you want a sorted list, use another program to do the 
  1788. sorting. 
  1789.  
  1790.  
  1791. XX.  WPSNOOP
  1792.  
  1793. WPSNOOP displays information concerning its input file(s).  If WPSNOOP 
  1794. recognizes an input file as a WPCorp-type file, it at least identifies 
  1795. the WPCorp product to which the file is related.  If the file is 
  1796. recognized as a WordPerfect file (and it is not for versions earlier 
  1797. than 5.0), WPSNOOP reports on the type of file.  If the file is a WP5 
  1798. document file, WPSNOOP lists the document summary if one exists, as 
  1799. well as the required PRS file and the printer.  If the file is a WP5 
  1800. macro file, WPSNOOP lists the macro description.  Used with a wildcard 
  1801. input file specification, WPSNOOP can therefore provide useful 
  1802. identification for many of the files. 
  1803.  
  1804. For WP5 document files and setup files, WPSNOOP optionally provides 
  1805. considerably more information, although most WP5 users will not find 
  1806. this information useful.  WPSNOOP can display information about the 
  1807. file prefix -- which data packets are contained in the prefix, where 
  1808. they are located and how large they are.  (Data packets are part of the 
  1809. organizational structure of the file prefix; the term data packet is 
  1810. WPCorp's.) 
  1811.  
  1812. Version information is displayed for various kinds of WPCorp files, and 
  1813. it may not be what you expect.  For example, the version number for 
  1814. WP50 macros is 1.0, and for WP51 macros it is 1.1. PRS files and ALL 
  1815. files associated with WP51 as originally released have the version 
  1816. number 3.3. 
  1817.  
  1818. WPSNOOP will display similar information for files associated with 
  1819. recent versions of some other WPCorp products.  The information, 
  1820. however, is sometimes misleading.  In certain cases, the files used by 
  1821. WPerf and other WPCorp programs are actually identical.  In 
  1822. distributing files for other programs, WPCorp has simply changed the 
  1823. name of the appropriate WPerf file, leaving the file identified 
  1824. internally as a WPerf file.  In those cases, WPSNOOP will misidentify 
  1825. the WPCorp product with which the file is associated. 
  1826.  
  1827. Usage:   WPSNOOP infile [infile] [-oOfile [-V]
  1828.  
  1829.                  Up to 5 infiles, which may include wildcards.
  1830.  
  1831.                  Output is written to standard output, unless Ofile is 
  1832.                  specified (with -o). If Ofile is specified, output is 
  1833.                  in WP50 format. 
  1834.  
  1835.                  -V option for Verbose report, which includes full map 
  1836.                  of data packets. 
  1837.  
  1838.  
  1839. Limitations:
  1840.  
  1841. With the Verbose option, WPSNOOP may not provide information about a 
  1842. few indexes which technically exist but provide no information.  The 
  1843. end of useful information is signalled (generally) by an index 
  1844. identifying a data packet of the "end of prefix" type.  All data 
  1845. packets after the first such data packet are identical (or at least 
  1846. provide no useful information).  WPSNOOP reports on only the first of 
  1847. these, even though others may exist.  If the index pointing to the "end 
  1848. of prefix" data packet has an index number less than 4, enough 
  1849. additional identical indexes exist so that the last of them is No. 4. 
  1850.  
  1851.  
  1852.  
  1853.  
  1854.                               UPDATE NOTES
  1855.  
  1856.  
  1857. Information about changes in WPTOOLS is contained in the Whats.New file 
  1858. distributed with the programs. 
  1859.  
  1860.  
  1861.                               GETTING HELP
  1862.  
  1863.  
  1864. Help in using WPTOOLS is available by mail, telephone, and several 
  1865. forms of E-mail.  The best time for telephone calls is 8pm-11pm Eastern 
  1866. time.  At other hours, you are likely to reach only an answering 
  1867. machine, but we return calls.  E-mail is recommended. 
  1868.  
  1869. David Seidman 
  1870. Software by Seidman
  1871. 2737 Devonshire Pl. NW 
  1872. Washington, DC 20008
  1873. 202/462-7381
  1874. CompuServe: [70441,2414]
  1875. GEnie: D.SEIDMAN
  1876.  
  1877. I monitor several networked WordPerfect BBS conferences more or less 
  1878. regularly, as well as the WPSGA forum on CompuServe and the WordPerfect 
  1879. RT on GEnie.  You can leave questions or suggestions for me in any of 
  1880. these places, or you can send E-mail on CompuServe or GEnie. If you use 
  1881. the networked conferences, you may get a faster response if you leave 
  1882. the message on the BBS I call than if you count on the network to get 
  1883. your message to me and mine to you. The networks are listed below, 
  1884. along with the BBS I usually call for each.  Note that this information 
  1885. can become outdated very quickly.  BBSs and networks are not the 
  1886. world's most stable entities. 
  1887.  
  1888.     Smartnet             (Arlington Software Exchange, 703-532-7143)
  1889.     MetroLink/RIME       (D.C. Information Exchange, 202-433-6639)
  1890.     Interlink            (DataBit, 703-719-9648)
  1891.     Fido                 (Free Spirit, 301-283-8917)
  1892.  
  1893. At this writing, DataBit is inactive, and I am therefore not monitoring 
  1894. Interlink.
  1895.  
  1896.  
  1897.                           LICENSE INFORMATION
  1898.  
  1899.  
  1900.  
  1901. WPTOOLS is not in the public domain.  Both the collection and the 
  1902. individual programs are fully protected by copyright.  (WPDOCS.NB and 
  1903. WPDOCS2.NB are not considered part of WPTOOLS and are in the public 
  1904. domain.) 
  1905.  
  1906. You are granted without charge a license which permits (a) use of the 
  1907. programs for a period of 30 days for evaluation and testing; (b) making 
  1908. copies for distribution to others without charge, provided the programs 
  1909. and the accompanying documentation are distributed together and without 
  1910. modification; (c) posting the programs, together with the accompanying 
  1911. documentation, on electronic bulletin board systems.  The permissions 
  1912. granted in this paragraph do NOT apply to the programs included only in 
  1913. Supplemental Tools; in particular, you are NOT permitted to distribute 
  1914. programs in the Supplemental Tools.  (For PRINTIT only, you are granted 
  1915. without charge a license to use the program for as long as you like.) 
  1916.  
  1917. Use after the 30 day evaluation and testing period requires payment of 
  1918. a license fee.  For a single copy (plus necessary archival copies), to 
  1919. be used on only one computer at a time, the fee is $25.00.  For your 
  1920. convenience, an invoice form is included below.  For large quantities, 
  1921. discounts and site licenses are available.  Write for information.  Any 
  1922. license for which payment is properly made is valid for this version of 
  1923. WPTOOLS and all subsequent versions. 
  1924.  
  1925. What do you get for your license fee?  You get the latest version of 
  1926. all the WPTOOLS programs, including the programs in Supplemental Tools, 
  1927. which are not distributed for evaluation.  You get permission to use 
  1928. the programs and the warm feeling that you are not violating the 
  1929. copyright laws.  I will send you notification of new versions.  And if 
  1930. you let me know about any problems you have with the programs, I will 
  1931. try to solve them. 
  1932.  
  1933. Users groups and other not-for-profit organizations may distribute 
  1934. unmodified copies of WPTOOLS (not including Supplemental Tools), 
  1935. together with its accompanying documentation, for a fee to cover 
  1936. duplication and related costs, but not to exceed $6.00.  Your payment 
  1937. of such a fee does not eliminate the requirements concerning payment of 
  1938. a license fee.  Certain organizations may have been granted permission 
  1939. to distribute the program for a fee larger than $6.00, the larger fee 
  1940. to include the license fee for a single copy.  If the organization from 
  1941. which you received a copy of the program has been granted that 
  1942. permission, it should tell you so. 
  1943.  
  1944. The United States Department of Justice is granted a license, without 
  1945. payment of fee, for all official use of WPTOOLS, including the 
  1946. Supplemental Tools. 
  1947.  
  1948.  
  1949.  
  1950.                           WARRANTY INFORMATION
  1951.  
  1952.  
  1953. These programs are distributed without warranties of any kind, express 
  1954. or implied, including, but not limited to, the implied warranties of 
  1955. merchantability and fitness for a particular purpose. 
  1956.  
  1957. No representation or other affirmation of fact, including but not 
  1958. limited to statements regarding suitability for use, or performance of 
  1959. the programs, shall be or be deemed a warranty by the licensor for any 
  1960. purpose, nor give rise to any liability or obligation of the licensor 
  1961. whatever. 
  1962.  
  1963. In particular, no statement in program documentation shall be deemed a 
  1964. representation or warranty that the programs will perform in any 
  1965. particular manner, or perform in any manner whatsoever, or that the 
  1966. programs are suitable for any particular use or any use at all. 
  1967.  
  1968.  
  1969.                                 Invoice
  1970.  
  1971.  
  1972. David Seidman
  1973. Software by Seidman
  1974. 2737 Devonshire Place, N. W.
  1975. Washington, D. C. 20008
  1976.  
  1977.                                               DATE:
  1978.  
  1979. SOLD TO:
  1980.  
  1981. __________________________
  1982. __________________________
  1983. __________________________
  1984.  
  1985.  
  1986. ┌──────────────────────────────────────┬────────────────────────┐
  1987. │ Description                          │     Price              │
  1988. │                                      │                        │
  1989. ├──────────────────────────────────────┼────────────────────────┤
  1990. │                                      │                        │
  1991. │ License for WPTOOLS5                 │      $   25.00         │
  1992. │                                      │                        │
  1993. │ additional licenses @ $25.00         │       _____.__         │
  1994. │                                      │                        │
  1995. │                                      │                        │
  1996. │                                      │                        │
  1997. │                                      │                        │
  1998. └──────────────────────────────────────┴────────────────────────┘
  1999.  
  2000.                                 Total:       $_____.__
  2001.  D.C. Residents add 6% D.C. Sales Tax:          ___.__
  2002.  
  2003.                          Total Charge:       $_____.__
  2004.  
  2005.  
  2006. Make checks payable to Software by Seidman.  Please mark checks
  2007. "WPTOOLS51".
  2008.  
  2009.